import axios from '@/utils/http'

export const login = (formData) => {
    return axios({
        url: "/accounts/login",
        method: "post",
        data: formData,
    })
}

export const sendCaptcha = (tel) => {
    return axios({
        url: '/captchas',
        method: 'post',
        data: {
            tel
        }
    })
}

export const register = (formData) => {
    return axios({
        url: '/accounts/register',
        method: 'post',
        data: formData
    })
}